﻿<%--
 *  File:    PriceListSummary.jsp
 *  @Author: Peter Shen
 *  Date:    Wednesday, October 16, 2002

 *  Copyright (C) 2000 - 2001 Oval Technologies, Inc.
 *  All rights reserved.
 *
 *  This software is the confidential and proprietary information of Oval
 *  Technologies, Inc. ("Confidential Information").  You shall not
 *  disclose such Confidential Information and shall use it only in
 *  accordance with the terms of the license agreement you entered into
 *  with Oval.
--%>
 

<%@ include file="/inc/SessionTimeout.inc"%>
<%@ page language="java" %>
<%@ page import="java.util.*" %>
<%@ page import="org.apache.log4j.Category" %>
<%@ page import="com.oval.util.*" %>

<%@ page contentType = "text/html;charset=UTF-8" %>
<%@ taglib uri="http://dcms.oval.com/page/dcms" prefix="dcms" %>
<%@ taglib uri="/WEB-INF/custom.tld" prefix="custom" %>

<%
  Category cat = Category.getInstance("jsp.PriceListSummary2");
  String privilegeCode = "10502";
  String strModuleName = "APM";
  String strTableName = "ovpricelistsummary";
%>

<%@include file="/inc/PageDefault.inc"%>


<%@include file="/inc/FrmDefault.inc"%>
<%@include file="/inc/LocationDefault.inc"%>
<html>
<head>
<title>pricelistsummary</title>
<link rel="stylesheet" href="<%=request.getContextPath()%>/css/<%= strLanguageCode %>/main.css" type="text/css">
<link type="text/css" rel="stylesheet" href="<%=request.getContextPath()%>/summary.css" />
<script language="JavaScript" src="js/ScriptLib.js"></script>
<script language="JavaScript" src="js/Calendar.js"></script>
<script language="JavaScript" >
 function mysubmit()
 {
    var obj=getElementsByColumnName("status");
    alert(getElementsByColumnName("status")[0].value);
    if(obj.length>0 && obj[0]!=null && obj[0].value!=null && obj[0].value==10)
    {
      __submit('');
      return  true;
    }
    __alert("<%=message.getMessageDesc("CAN_NOT_SUBMIT_IT")%>");
    return false
 } 
  function myagree()
 {
    var obj=getElementsByColumnName("status");
    alert(getElementsByColumnName("status")[0].value);
    if(obj.length>0 && obj[0]!=null && obj[0].value!=null && obj[0].value==20)
    {
      __agree('');
      return  true;
    }
    __alert("<%=message.getMessageDesc("CAN_NOT_SUBMIT_IT")%>");
    return false
 } 
 var label_L_CheckUnPass_cn="不同意";
 var label_L_CheckUnPass_en="不同意";
 
 function mynopass()
 {
    var obj=getElementsByColumnName("status");
    alert(getElementsByColumnName("status")[0].value);
    if(obj.length>0 && obj[0]!=null && obj[0].value!=null && obj[0].value==20)
    {
      __approvalAction("approvepassed","label_L_CheckUnPass_","");
      return  true;
    }
    __alert("<%=message.getMessageDesc("CAN_NOT_SUBMIT_IT")%>");
    return false
 } 
   function mydeny()
 {
    var obj=getElementsByColumnName("status");
    alert(getElementsByColumnName("status")[0].value);
    if(obj.length>0 && obj[0]!=null && obj[0].value!=null && obj[0].value==20)
    {
      __deny('');
      return  true;
    }
    __alert("<%=message.getMessageDesc("CAN_NOT_SUBMIT_IT")%>");
    return false
 }
  
</script>


<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
 
<dcms:summary id="org4testapproval"  hiddenDetailHeader="false"  subjectcode="orgapproval" >
  
  <dcms:otherSearchCondition  >
  </dcms:otherSearchCondition>  
  <dcms:summaryAction actionFuction="mysubmit" labelCode="L_Submit"  styleWidth="60"/> 
  <dcms:summaryAction actionFuction="myagree" labelCode="L_Agree"  styleWidth="60"/> 
  <dcms:summaryAction actionFuction="mynopass" labelCode="L_CheckUnPass"  styleWidth="60"/> 
    
  <dcms:summaryAction actionFuction="mydeny" labelCode="L_Deny"  styleWidth="60"/> 
 </dcms:summary>
 </body>
 </html> 